package com.imohoo.jni;

/**
 * Created by zhaobo on 2016/5/10.
 */
public class Main {
    static {
        try {
            System.loadLibrary("shanpao_jni");
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }

    /** 加密 */
    public static final int ENCRYPT = 0;
    /** 解密 */
    public static final int DECRYPT = 1;

    /**
     * @param context 上下文
     * @param mode    1debug签名,2zoubo 3移动
     */
    public static native void init(Object context, int mode);

    /**
     * aes 加密,base64编码
     *
     * @param data 字节数据
     * @param mode 0加密,1解密
     * @param mode 1密码1,2密码2
     */
    public static native byte[] abc(byte[] data, int mode, int mode2);
}
